package com.example.springboot01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;

@TableName("student")
@Data
public class Student{

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String studentNo;

    private Integer classId;

    private Integer professorId;

    private String gender;

    private Integer age;

    private LocalDate birthday;

    private String realName;

    private Integer userId;

    @TableField(exist = false)
    private String className;

    @TableField(exist = false)
    private String professorName;
}
